From 78c201d8d9d2f3ec07f6ea36201977846e29ccd9 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 4 Feb 2026 12:42:42 -0800 Subject: homepage design and currency toggling --- src/routes/(app)/pay/[username]/[...amount]/+page.svelte | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/routes/(app)/pay/[username]') diff --git a/src/routes/(app)/pay/[username]/[...amount]/+page.svelte b/src/routes/(app)/pay/[username]/[...amount]/+page.svelte index daf5bc08..46f73506 100644 --- a/src/routes/(app)/pay/[username]/[...amount]/+page.svelte +++ b/src/routes/(app)/pay/[username]/[...amount]/+page.svelte @@ -6,6 +6,7 @@ import Numpad from "$comp/Numpad.svelte"; import { page } from "$app/stores"; import { f, loc, fail, post, s, sat, sats } from "$lib/utils"; + import { fiat as fiatStore } from "$lib/store"; import { applyAction, deserialize } from "$app/forms"; let { data, form } = $props(); @@ -69,7 +70,12 @@ type="button" class="btn !w-auto grow" onclick={setMax} - onkeydown={setMax}>Max ⚡️{s(user.balance)}{#if $fiatStore} + Max {f((user.balance * rate) / sats, currency, locale)} + {:else} + Max ⚡️{s(user.balance)} + {/if} {/if} -- cgit v1.2.3